import React from "react"
import RouterView from '../router/RouterView'
import {NavLink} from "react-router-dom"
import { IRouteItem } from '../utils/interface';
interface Iprops{
    routes:IRouteItem[]
}
const Index:React.FC<Iprops> = (props)=>{
    return <div className="Index">
        <div className="RouterView"><RouterView  routes={props.routes} /></div>
        <div className="nav">
            <NavLink to="/index/home">首页</NavLink>
            <NavLink to="/index/classfig">分类</NavLink>
            <NavLink to="/index/message">消息</NavLink>
            <NavLink to="/index/my">我的</NavLink>
        </div>
    </div>
}

export default Index